package io.finer.erp.jeecg.stock.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import io.finer.erp.jeecg.stock.entity.PurchaseOrderEntry;

/**
 * @Description: 明细
 * @Author: jeecg-boot
 * @Date:   2021-05-20
 * @Version: V1.0
 */
public interface PurchaseOrderEntryMapper extends BaseMapper<PurchaseOrderEntry> {

	public boolean deleteByMainId(@Param("mainId") String mainId);
    
	public List<PurchaseOrderEntry> selectByMainId(@Param("mainId") String mainId);
	
	public BigDecimal getSupplierPrice(@Param("supplierId")String supplierId, @Param("categoryId")String categoryId);
}
